var RankItem = cc.Sprite.extend({
	rankiteam:null,
	txt_Num:null,
	txt_Name:null,
	txt_Socre:null,
	url_Head:null,
	mainScene:null,

	ctor:function(num,name,score,url){
		this._super();
		rankiteam=this;
//		this.initWithFile("res/s8.png");
//		this._init();
		this.mainScene=ccs.load(res.rankitem_json).node;
		this.addChild(this.mainScene);
		
		txt_Num=this.mainScene.getChildByName("Text_1");
		txt_Name=this.mainScene.getChildByName("Text_2");
		txt_Socre=this.mainScene.getChildByName("Text_3");
		txt_Num.setString(num+".");
		txt_Name.setString(name);
		txt_Socre.setString(score);
		url_Head=url;
		var that=this;
		cc.loader.loadImg(url_Head, {isCrossOrigin : false }, function(err,img){
			var mm_spChoose=new cc.Sprite(img);
			mm_spChoose.attr({
				x:-64,
				y:-9.3
			});
			//mm_spChoose.width=72;
			//mm_spChoose.height=72;
			//mm_spChoose.setScale(0.12, 0.12);
			that.mainScene.addChild(mm_spChoose, 1);
		});

	},

	update:function(dt){

	}
});